package com.zrrd.blog.api.feign;

import com.zrrd.blog.api.entities.Label;
import com.zrrd.blog.api.entities.UserInfoREQ;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "article-server",path = "/article")
public interface IFeignArticleController {
    @ApiImplicitParam(allowMultiple = true,dataType = "String",name = "labelIds",value = "标签id集合",required = true)
    @ApiOperation("feign接口-根据标签ids查询对应标签信息")
    @PostMapping("/api/feign/label/list/{ids}")
    List<Label> getLabelListByIds(@PathVariable("ids") List<String> labelIds);
    @PutMapping("/feign/article/user")
    boolean updateUserInfo(@RequestBody UserInfoREQ req);
}
